package spring.model;

public class Singleton {
    //private
    private Singleton() {
    }
    //private holder
    private static class InstanceHolder {
        private static final Singleton INSTANCE = new Singleton();
    }

    public static Singleton getInstance() {
        return InstanceHolder.INSTANCE;
    }

}
